package com.demo.aop.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 日志实体类
 *
 * @author yueyang
 * @since 2022-03-01 11:02:00
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Log {

  /** 线程id */
  private String threadId;

  /** 线程名称 */
  private String threadName;

  /** ip */
  private String ip;

  /** url */
  private String url;

  /** http方法 GET POST PUT DELETE PATCH */
  private String httpMethod;

  /** 类方法 */
  private String classMethod;

  /** 请求参数 */
  private Object requestParams;

  /** 返回参数 */
  private Object result;

  /** 接口耗时 */
  private Long timeCost;

  /** 操作系统 */
  private String os;

  /** 浏览器 */
  private String browser;

  /** user-agent */
  private String userAgent;
}
